package com.treasure.mall.biz.entity.wechat;

import com.treasure.mall.biz.entity.BasePO;
import com.treasure.mall.zbq.common.ienum.wx.WxMsgType;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 *
 * <p> 关键字消息回复
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity.wechat
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/9/15 10:57 上午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 *
 */
@Entity
@Data
@NoArgsConstructor
@Table(name = "zb_wechat_keyword_message")
public class WechatKeywordMessagePO extends BasePO {
    /**
     *
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "keyword", length = 50)
    private String keyword;

    /**
     * 消息类型{@link com.treasure.mall.zbq.common.ienum.wx.WxMsgType}
     */
    @Column(name = "msg_type")
    private WxMsgType msgType;
    /**
     * 回复消息内容
     */
    @Column(name = "content", length = 150)
    private String content;
    /**
     * 回复消息图片地址
     */
    @Column(name = "url")
    private String url;
}
